<style>
  .basemenus_tableWidth {
    background-color:#653d3d;
    width: 100%;
    height: 50px;
  }
  .basemenus_tableCenter {
    background-color:#653d3d;
    width: {{$smarty.const.PAGE_WIDTH|escape:'html'}};
    height: 50px;
  }
  .basemenus_cellLeft {
    width: 40px;
    height: 50px;
  }
  .basemenus_td1 {
    width: 200px;
    height: 50px;
    vertical-align: left;
  }
  .basemenus_cellMiddle {
    width: 700px;
    height: 50px;
    vertical-align: left;
  }
  .basemenus_cellRight {
    width: 40px;
    height: 50px;
  }
  .basemenus_subTableWidth {
    height: 30px;
  }
  .basemenus_cursorPoint {
    margin: 5px 0 0 0;
  }
  .basemenus_td10 {
    height:30px;
    width: 8px;
  }
</style>

{{if $template == 'pagereceipt' || $template == 'pagecontract'}}
  <table class="basemenus_tableWidth" cellPadding="0" cellSpacing="0">
    <tr>
      <td align="center">
        <table class="basemenus_tableCenter" cellPadding="0" cellSpacing="0">
          <tr>
            <td class="basemenus_cellLeft"></td>
            <td class="basemenus_td1" align="left">
              <img src="{{$smarty.const.DREAMLIFE_IMAGE|escape:'html'}}"></img>
            </td>
            <td class="basemenus_cellMiddle" align="right">
            </td>
            <td class="basemenus_cellRight"></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
{{else}}
  <table class="basemenus_tableWidth" cellPadding="0" cellSpacing="0" border=0>
    <tr>
      <td align="center">
        <table class="basemenus_tableCenter" cellPadding="0" cellSpacing="0">
          <tr>
            <td class="basemenus_td1" align="left">
              <img src="{{$smarty.const.DREAMLIFE_IMAGE|escape:'html'}}"></img>
            </td>
            <td class="basemenus_cellMiddle" align="right" valign="bottom">
              <table class="basemenus_subTableWidth" cellPadding="0" cellSpacing="0" border=0>
                <tr>
                  <td {{if $menu->a == 1}}class="basemenus_tasksHilight"{{else}}class="basemenus_tasks"{{/if}} onclick="location.href='?p=pageacct&t=pageb1acctcustomworks&m={%22a%22:1,%22b%22:1,%22c%22:1,%22d%22:1}';">
                    <a href="?p=pageacct&t=pageb1acctcustomworks&m={%22a%22:1,%22b%22:1,%22c%22:1,%22d%22:1}">My Account</a>
                  </td>
                  <td class="basemenus_td10"></td>
                  <td {{if $menu->a == 2}}class="basemenus_tasksHilight"{{else}}class="basemenus_tasks"{{/if}} onclick="location.href='?p=pageacct&t=pagecustomers&m={%22a%22:2,%22b%22:1}';">
                    <a href="?p=pageacct&t=pagecustomers&m={%22a%22:2,%22b%22:1}">Customer</a>
                  </td>
                  <td class="basemenus_td10"></td>
                  <td {{if $menu->a == 3}}class="basemenus_tasksHilight"{{else}}class="basemenus_tasks"{{/if}} onclick="location.href='?p=pageacct&t=pagewakkanoworkingdate&m={%22a%22:3,%22b%22:1}';">
                    <a href="?p=pageacct&t=pagewakkanoworkingdate&m={%22a%22:3,%22b%22:1}">Problem</a>
                  </td>                  
                  <td style="width:8px"></td>
                  <td {{if $menu->a == 4}}class="basemenus_tasksHilight"{{else}}class="basemenus_tasks"{{/if}} onclick="location.href='?p=pageacct&t=pageiecustomerall&m={%22a%22:4,%22b%22:1,%22c%22:1,%22d%22:1}';">
                    <a href="?p=pageacct&t=pageiecustomerall&m={%22a%22:4,%22b%22:1,%22c%22:1,%22d%22:1}">Performance</a>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
{{/if}}
